<#include "/common/layout.html"> 
<@layout title="123">
<script type="text/javascript" src="/js/easyui/easyui_grid.js"></script>
<script type="text/javascript">
var model_name = "/shopGoods";
var model_title="商户商品";
var datagrid;
	$(function() {
		
		$('#edit_marketId').combobox({    
	    	url: '/market/combobox',   
		    valueField:'id',    
		    textField:'name',
		    width:150
	    });
	    
	    $("#edit_shopId").combobox({
			url: '/shop/combobox/',    
			valueField:'id',    
		    textField:'name',
		    width:150
		});	
		
		datagrid=$('#product_type_table').datagrid({
		 	url:model_name+'/grid',
		 	rownumbers:true,
		 	columns:[[    
		        {field:'id',title:'id',width:100,checkbox:true},
		        {field:'marketName',title:'所属市场',width:160},
		        {field:'shopName',title:'所属商铺',width:160},
		        {field:'goodsName',title:'商品名称',width:180},
		        {field:'unit',title:'单位',width:180},
		        {field:'price',title:'最新价格（元）',width:120},
		        {field:'created_time',title:'创建时间',width:150}
		    ]]
		})
	})
	
</script>
<script type="text/javascript" src="/js/easyui/easyui_grid_common.js">
</script>
</head>
	<#include "/common/seach.html" />
	<@seach tableid="product_type_table">
	<td>所属市场</td>
	<td><input id="edit_marketId" name="EQ_m.id"></td> 
	<td>所属商铺</td>
	<td><input id="edit_shopId" name="EQ_s.id"></td>
	</@seach>
</@layout>